<template>
  <div class="app">
    <h1>当前计数为: {{ counter }}</h1>
    <h1>双倍快乐: {{ doubleCounter }}</h1>
    <button @click="increment">+</button>
  </div>
</template>
<script setup>
import useCounter from '@/hooks/useCounter';
const { counter, increment, doubleCounter } = useCounter(0);
counter.value = 2000;
</script>
<style lang="scss" scoped></style>
